package com.ruoyi.djb.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.djb.mapper.DjbBuildingMapper;
import com.ruoyi.djb.domain.DjbBuilding;
import com.ruoyi.djb.service.IDjbBuildingService;
import com.ruoyi.common.core.text.Convert;

/**
 * 楼座管理Service业务层处理
 * 
 * @author xxd
 * @date 2023-12-08
 */
@Service
public class DjbBuildingServiceImpl implements IDjbBuildingService 
{
    @Autowired
    private DjbBuildingMapper djbBuildingMapper;

    /**
     * 查询楼座管理
     * 
     * @param id 楼座管理主键
     * @return 楼座管理
     */
    @Override
    public DjbBuilding selectDjbBuildingById(Integer id)
    {
        return djbBuildingMapper.selectDjbBuildingById(id);
    }

    /**
     * 查询楼座管理列表
     * 
     * @param djbBuilding 楼座管理
     * @return 楼座管理
     */
    @Override
    public List<DjbBuilding> selectDjbBuildingList(DjbBuilding djbBuilding)
    {
        return djbBuildingMapper.selectDjbBuildingList(djbBuilding);
    }

    /**
     * 新增楼座管理
     * 
     * @param djbBuilding 楼座管理
     * @return 结果
     */
    @Override
    public int insertDjbBuilding(DjbBuilding djbBuilding)
    {
        return djbBuildingMapper.insertDjbBuilding(djbBuilding);
    }

    /**
     * 修改楼座管理
     * 
     * @param djbBuilding 楼座管理
     * @return 结果
     */
    @Override
    public int updateDjbBuilding(DjbBuilding djbBuilding)
    {
        return djbBuildingMapper.updateDjbBuilding(djbBuilding);
    }

    /**
     * 批量删除楼座管理
     * 
     * @param ids 需要删除的楼座管理主键
     * @return 结果
     */
    @Override
    public int deleteDjbBuildingByIds(String ids)
    {
        return djbBuildingMapper.deleteDjbBuildingByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除楼座管理信息
     * 
     * @param id 楼座管理主键
     * @return 结果
     */
    @Override
    public int deleteDjbBuildingById(Integer id)
    {
        return djbBuildingMapper.deleteDjbBuildingById(id);
    }
}
